#ifndef __LCD_H__
#define __LCD_H__
/*variable definition*/


//sbit LCDBUSY = P1^7;
sbit LCDRST = P1^0;
sbit EN = P1^1;
sbit RW = P1^2;
sbit RS = P1^3;
sbit LCS2 = P1^4;
sbit LCS1 = P1^5;



extern unsigned char led[4];

/*command constant definition*/
#define LCDON 0x3f     //turn on the lcd
#define LCDOFF 0x3e	   //turn off the lcd


#define LCD_XSIZE 128
#define LCD_YSIZE 64

#define POSI_LEFT 0
#define POSI_MID  1

/*function declaration*/
void lcd_disp(unsigned char data page,unsigned char data line,unsigned char *character);
void lcd_init(void);
void lcd_clr(void);
void lcd_data(unsigned char data dat);
void lcd_sta(unsigned char data sta);
void delay(unsigned char itime);
void Refresh_LCD_Disp();
void Lcd_Disp_OneByte(unsigned char Byte,unsigned char page,unsigned char line);
void Disp_String_At(char Str[],unsigned char X,unsigned char Y,unsigned char Disp_Flag);
#endif